import { request } from '@umijs/max';

export async function queryCurrentNotice() {
    return request('/notice/current-notice', {
        method: 'GET',
    })
}
export async function paginationQueryNotice(form) {
    return request('/notice/page-query/list', {
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
        },
    })
}
export async function createNotice(form) {
    return request('/notice/create',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function updateNotice(form) {
    return request('/notice/update',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function batchDeleteNotice(form) {
    return request('/notice/batch/delete',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function queryNoticeDetailInfo(param) {
    return request('/notice/query/detail-info?'+param,{
        method: 'GET'
    })
}